#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2020/9/3 15:10
# @Author : 吴敬超
# explain:
import pandas as pd
import threading
import numpy as np
import netCDF4 as nc
import datetime
import csv
import time as ti
import glob
import multiprocessing
file_path = 'D:/ehlocean/data/TEMPSALT/B.E.13.B1850C5.ne120_t12.sehires38.003.sunway_02.rtm.h0.0022-02.nc'

# file_path = 'D:\NetCDFfile\盐度三个月经纬度均匀处理后数据\SALT_B.E.13.B1850C5.ne120_t12.sehires38.003.sunway_02.pop.h.0021-01.nc'
file_obj = nc.Dataset(file_path)
#
# mrt = file_obj.variables['mrt'][:]
# lon = file_obj.variables['lon'][:]
# lat = file_obj.variables['lat'][:]
# time = file_obj.variables['time']
#
# times = nc.num2date(time[:], time.units)

QCHANR = file_obj.variables['QCHANR'][:]

QCHANR = file_obj.variables['QCHANR'][:]
# lon = file_obj.variables['lon'][:]
# lat = file_obj.variables['lat'][:]
# z_t = file_obj.variables['z_t'][:]

print QCHANR[0][0][0]
#
# salt = file_obj.variables['SALT'][:]
# lon = file_obj.variables['lon'][:]
# lat = file_obj.variables['lat'][:]
# z_t = file_obj.variables['z_t'][:]
